package com.quanshu.exchange.support.entity;

import lombok.Data;

@Data
public class GoodsEntity {

    /**
     * name : 测试1
     * is_active : 1
     * cost_price : 0.00
     * goods_id : 251
     * img : upload/2018/01/08/20180108123524645.jpg
     * sell_price : 300.00
     * gp_price : 0.00
     * niu_score : 0.00
     * market_rmb : 500.00
     * weight : 0.00
     * store_nums : 100
     * exp : 0
     * goods_no : SD151538603924
     * product_id : 0
     * seller_id : 0
     * reduce : 0
     * count : 2
     * is_service : null
     * sum : 600
     * count_gp : 0
     * count_score : 0
     * count_rmb : 1000
     * goods_type : goods
     */
    private String goods_id;
    private String name;
    private String is_active;
    private String cost_price;
    private String img;
    private String sell_price;
    private String gp_price;
    private String niu_score;
    private String market_rmb;
    private String weight;
    private String store_nums;
    private String exp;
    private String goods_no;
    private String product_id;
    private String seller_id;
    private int reduce;
    private int count;
    private String is_service; // 0, 没有勾选我要免费  1,已勾选
    private double sum;
    private int count_gp;
    private int count_score;
    private int count_rmb;
    private String goods_type;
    private String two_price;//勾选我要免费后的价格

    ///////////////////////////////////////////////
    private boolean selectState = false;

//    @Override
//    public boolean equals(Object obj) {
//        if (obj instanceof GoodsEntity) {
//            GoodsEntity goodsEntity = (GoodsEntity) obj;
//            return (goods_id.equals(goodsEntity.getGoods_id()));
//        }
//        return super.equals(obj);
//    }
//
//    @Override
//    public int hashCode() {
//        GoodsEntity goodsEntity = this;
//        return goodsEntity.getGoods_id().hashCode();
//
//    }

}